<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/6/29
  Time: 9:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link href="../css/Style.css" type=text/css rel=stylesheet>
    <link href="../css/Manage.css" type=text/css rel=stylesheet>
    <script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
    <script language=javascript>
        function to_page(page){
            if(page){
                $("#page").val(page);
            }
            document.customerForm.submit();
        }
    </script>
</head>
<body>
<form id="customerForm" name="customerForm" action="queryCustomByName" method="get">
    <table cellSpacing=0 cellPadding=0 width="98%" border=0>
        <tbody>
        <tr>
            <td width=15><img src="../images/new_019.jpg"
                              border=0></td>
            <td width="100%" background="../images/new_020.jpg"
                height=20></td>
            <td width=15><img src="../images/new_021.jpg"
                              border=0></td>
        </tr>
        </tbody>
    </table>
    <table cellSpacing=0 cellPadding=0 width="98%" border=0>
        <tbody>
        <tr>
            <td width=15 background="../images/new_022.jpg"><img
                    src="../images/new_022.jpg" border=0></td>
            <td vAlign=top width="100%" bgColor=#ffffff>
                <table cellSpacing=0 cellPadding=5 width="100%" border=0>
                    <tr><td class=manageHead>当前位置：客户管理 &gt; 客户列表</td></tr>
                    <tr><td height=2></td></tr>
                </table>
                <table borderColor=#cccccc cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                    <tbody>
                    <tr><td height=25>
                        <table cellSpacing=0 cellPadding=2 border=0>
                            <tbody>
                            <tr>
                                <td>客户名称：</td>
                                <td><input class=textbox id=sChannel2 style="WIDTH: 80px" maxLength=50 name="custName"></td>
                                <td><input class=button id=sButton2 type=submit value=" 筛选 " name=sButton2></td>
                            </tr>
                            </tbody>
                        </table></td>
                    </tr>

                    <tr><td>
                        <table id=grid style="BORDER-TOP-WIDTH: 0px; FONT-WEIGHT: normal; BORDER-LEFT-WIDTH: 0px; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 0px; BORDER-BOTTOM-COLOR: #cccccc; WIDTH: 100%; BORDER-TOP-COLOR: #cccccc; FONT-STYLE: normal; BACKGROUND-COLOR: #cccccc; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: none; BORDER-RIGHT-COLOR: #cccccc" cellSpacing=1 cellPadding=2 rules=all border=0>
                            <tbody>
                            <tr style="FONT-WEIGHT: bold; FONT-STYLE: normal; BACKGROUND-COLOR: #eeeeee; TEXT-DECORATION: none">
                                <td>客户名称</td>
                                <td>客户来源</td>
                                <td>所属行业</td>
                                <td>客户级别</td>
                                <td>固定电话</td>
                                <td>移动电话</td>
                                <td>操作</td>
                            </tr>

                            <c:forEach items="${requestScope.customers}" var="customer">
                                <tr  style="FONT-WEIGHT: normal; FONT-STYLE: normal; BACKGROUND-COLOR: white; TEXT-DECORATION: none">
                                    <td>${customer.custName}</td>
                                    <td>${customer.custSource}</td>
                                    <td>${customer.custIndustry}</td>
                                    <td>${customer.custLevel}</td>
                                    <td>${customer.custPhone}</td>
                                    <td>${customer.custMobile}</td>
                                    <td>
                                        <a href="queryCustomById?custId=${customer.custId}">修改</a>
                                        &nbsp;&nbsp;
                                        <a href="deleteCustomer?custId=${customer.custId}">删除</a>
                                    </td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                    </td></tr>

                    <tr>
                        <td><span id=pagelink>
                            <div style="LINE-HEIGHT: 20px; HEIGHT: 20px; TEXT-ALIGN: right">
                                共[<B>10</B>]条记录,[<B>5</B>]页
                                ,每页显示
                                <select name="pageSize">
                                    <option value="15" >15</option>
                                    <option value="30" >30</option>
                                </select>
                                条
                                [<a href="#">前一页</A>]
                                <B>1</B>
                                [<a href="#">后一页</a>]
                                到
                                <input type="text" size="3" id="page" name="page" value="3"/>
                                页

                                <input type="submit" value="Go" onclick="to_page()"/>
                            </div>
                        </span></td>
                    </tr>
                    </tbody>
                </table>
            </td>
            <td width=15 background="../images/new_023.jpg"><img
                    src="../images/new_023.jpg" border=0></td>
        </tr>
        </tbody>
    </table>
    <table cellSpacing=0 cellPadding=0 width="98%" border=0>
        <tbody>
        <tr>
            <td width=15><img src="../images/new_024.jpg"
                              border=0></td>
            <td align=middle width="100%"
                background="../images/new_025.jpg" height=15></td>
            <td width=15><img src="../images/new_026.jpg"
                              border=0></td>
        </tr>
        </tbody>
    </table>
</form>
</body>
</html>
